package com.hyt.it.ogt.kq.service.bm.feign.tk;

import com.hyt.common.apiInfor.ApiResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 
 * feign客户端熔断器
 *
 */
@Component
@Slf4j
public class TkClientHystrix implements TkClient {

	@Override
	public ApiResponse itemCountStatistics(String startDate, String endDate) throws Exception {
		log.error("#统计完成试卷，进入熔断");
		throw new Exception("统计完成试卷失败，进入熔断");
	}
	@Override
	public ApiResponse paperCountStatistics(String startDate, String endDate) throws Exception {
		log.error("#统计完成试卷，进入熔断");
		throw new Exception("统计完成试卷失败，进入熔断");
	}

}
